package com.five.welcome.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.five.welcome.entity.Studentinfo;
import com.baomidou.mybatisplus.extension.service.IService;
import com.five.welcome.entity.statistic.GenderOfStudentCount;

import java.util.List;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author ywt
 * @since 2024-07-11
 */
public interface StudentinfoService extends IService<Studentinfo> {

    //注册学生信息
    int addStudent(Studentinfo studentinfo);

    //通过学号获取学生信息
    Studentinfo getInfoBySNumber(String sNumber);

    //分页条件查询
    Page<Studentinfo> myPage(Integer pageNumber, Integer pageSize,
                             String sNumber, String major, String classes);

    //通过学号获取姓名
    String getSNameBySNumber(String sNumber);

    //统计学生信息男女人数
    List<GenderOfStudentCount> GenderOfStudentCount();
}
